/*
 * 导入外部js文件
 */
document.write("<script language=javascript src='/js/common.js'></script>");
var enter = false;

function modifyUserInfoMode(obj){
	
	console.log("enter");
	var icon = document.getElementById("usericon");
	var position = getAbsolutePosition(icon);
/*	var div = document.createElement("div");
	div.id= "addressdm";
	div.className = "address-dm";
	div.style.left = position.left+"px";
	div.style.top = position.top+"px";
*/	
	
	var info = document.createElement("p");
	info.id="infoPara";
	info.innerHTML = "查看个人信息";
	info.style.position = "absolute";
	var position = getAbsolutePosition(obj);
	info.style.top = position.top+ "px"; 
	info.style.left = position.left+ "px"; 
	info.style.width = "114px";
	info.style.height = "114px";
	info.style.margin = "50px 0 0 15px";
	info.style.fontSize = "14px";
	info.style.color = "green";
	
	icon.style.opacity = 0.75;
	
	obj.appendChild(info);
}


function modifyUserInfoModeOut(obj){
	console.log("leave");
	
	var icon = document.getElementById("usericon");
	icon.style.opacity = 1;
	obj.removeChild(document.getElementById("infoPara"));
}

function toUserProfile(){
	document.location.href = "/user/profile";
}
